package project.menu.ordermenu.listmadingorders;

import project.menu.IMenu;
import project.menu.IMenuItem;
import project.work.Navigator;
import controllers.IAutoservice;

public class MadingOrdersByPrice implements IMenuItem {
	private String name = "Sort By Price";
	private final Integer id = 4;
	private static IMenu submenu;	
	private Navigator n;
	
	public MadingOrdersByPrice(){
		n=Navigator.getInstance();
	}
	
		
	public Integer getId() {
		return id;
	}	

	
	public String getNameItem() {
		return name;
	}


	public static void setMenu(IMenu menu) {
		submenu = menu;
	}

	public void action(IAutoservice aut) {
		
		aut.SortMadingOrderByPrice();
		n.drawMenu(submenu);

	}

}
